Skip to content

Remove unmount timeout on shutdown#195

Merged
dmcgowan merged 1 commit into
containerd:mainfrom
Kern--:unmount-timeout
May 21, 2026
Merged

Remove unmount timeout on shutdown#195
dmcgowan merged 1 commit into
containerd:mainfrom
Kern--:unmount-timeout

Conversation

@Kern--
Copy link
Copy Markdown
Contributor

@Kern-- Kern-- commented May 21, 2026

UnmountAllWithRetries set it's own 30s timeout, but it's covered by the overall shutdown timeout. Setting a distinct timeout for unmount makes it harder to trace exactly which timeout expired if shutdown takes too long. Instead, we should treat the whole shutdown process as a single process covered by a single timeout.

UnmountAllWithRetries set it's own 30s timeout, but it's covered
by the overall shutdown timeout. Setting a distinct timeout for
unmount makes it harder to trace exactly which timeout expired if
shutdown takes too long. Instead, we should treat the whole
shutdown process as a single process covered by a single timeout.

Signed-off-by: Kern Walster <kern.walster@gmail.com>
Copilot AI review requested due to automatic review settings May 21, 2026 04:44
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Removes the per-operation unmount timeout during shim shutdown so unmounting block volumes is governed by the single, overall shutdown timeout, avoiding ambiguous “which timeout fired” behavior during slow shutdowns.

Changes:

  • Removed the nested context.WithTimeout(..., 30*time.Second) around unmountAllWithRetry.
  • Reused the shutdown callback’s ctx for unmount retries to align unmount timing with the global shutdown deadline.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@Kern-- Kern-- self-assigned this May 21, 2026
@dmcgowan dmcgowan merged commit 026a903 into containerd:main May 21, 2026
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants